package com.bdqn.factory;

import com.bdqn.dao.NewsDao;
import com.bdqn.dao.impl.NewsDaoMySQLImpl;

/**
 * 抽象工厂模式，MySQLDao实现，专门生产MySQLDaoImpl实现类
 *
 * @author LILIBO
 * @since 2021-10-08
 */
public class MySQLDaoFactory implements AbstractFactory {

    /**
     * 生产NewsDao的方法
     *
     * @return
     */
    @Override
    public NewsDao getInstance() {
        return new NewsDaoMySQLImpl();
    }
}
